package cn.com.dcsgo.springboot.demo.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import java.util.List;

/**
 * @Author: Dcsgo
 * @CreateTime: 2024-05-22
 * @Description: DataAccess层
 * @Version: 1.0
 */
@Repository
public interface StudentRepository extends JpaRepository<Student, Long> {
    //Jpa会帮我们自动写sql语句(方法名满足一定的命名规范时)
    List<Student> findByEmail(String email);

}
